/*
 * Selling Partner API for Orders
 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
 *
 * OpenAPI spec version: v0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.VerificationStatus;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * The types of verification details that may be provided for the order and the criteria required for when the type of verification detail can be provided. The types of verification details allowed depend on the type of regulated product and will not change order to order.
 */
@ApiModel(description = "The types of verification details that may be provided for the order and the criteria required for when the type of verification detail can be provided. The types of verification details allowed depend on the type of regulated product and will not change order to order.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-09-20T09:03:02.625+08:00")
public class ValidVerificationDetail {
  @SerializedName("VerificationDetailType")
  private String verificationDetailType = null;

  @SerializedName("ValidVerificationStatuses")
  private List<VerificationStatus> validVerificationStatuses = new ArrayList<VerificationStatus>();

  public ValidVerificationDetail verificationDetailType(String verificationDetailType) {
    this.verificationDetailType = verificationDetailType;
    return this;
  }

   /**
   * A supported type of verification detail. The type indicates which verification detail could be shared while updating the regulated order. Valid value: &#x60;prescriptionDetail&#x60;.
   * @return verificationDetailType
  **/
  @ApiModelProperty(required = true, value = "A supported type of verification detail. The type indicates which verification detail could be shared while updating the regulated order. Valid value: `prescriptionDetail`.")
  public String getVerificationDetailType() {
    return verificationDetailType;
  }

  public void setVerificationDetailType(String verificationDetailType) {
    this.verificationDetailType = verificationDetailType;
  }

  public ValidVerificationDetail validVerificationStatuses(List<VerificationStatus> validVerificationStatuses) {
    this.validVerificationStatuses = validVerificationStatuses;
    return this;
  }

  public ValidVerificationDetail addValidVerificationStatusesItem(VerificationStatus validVerificationStatusesItem) {
    this.validVerificationStatuses.add(validVerificationStatusesItem);
    return this;
  }

   /**
   * A list of valid verification statuses where the associated verification detail type may be provided. For example, if the value of this field is [\&quot;Approved\&quot;], calls to provide the associated verification detail will fail for orders with a &#x60;VerificationStatus&#x60; of &#x60;Pending&#x60;, &#x60;Rejected&#x60;, &#x60;Expired&#x60;, or &#x60;Cancelled&#x60;.
   * @return validVerificationStatuses
  **/
  @ApiModelProperty(required = true, value = "A list of valid verification statuses where the associated verification detail type may be provided. For example, if the value of this field is [\"Approved\"], calls to provide the associated verification detail will fail for orders with a `VerificationStatus` of `Pending`, `Rejected`, `Expired`, or `Cancelled`.")
  public List<VerificationStatus> getValidVerificationStatuses() {
    return validVerificationStatuses;
  }

  public void setValidVerificationStatuses(List<VerificationStatus> validVerificationStatuses) {
    this.validVerificationStatuses = validVerificationStatuses;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ValidVerificationDetail validVerificationDetail = (ValidVerificationDetail) o;
    return Objects.equals(this.verificationDetailType, validVerificationDetail.verificationDetailType) &&
        Objects.equals(this.validVerificationStatuses, validVerificationDetail.validVerificationStatuses);
  }

  @Override
  public int hashCode() {
    return Objects.hash(verificationDetailType, validVerificationStatuses);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ValidVerificationDetail {\n");
    
    sb.append("    verificationDetailType: ").append(toIndentedString(verificationDetailType)).append("\n");
    sb.append("    validVerificationStatuses: ").append(toIndentedString(validVerificationStatuses)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

